{**
 * My Application layout template.
 *
 * @copyright  Copyright (c) 2010 John Doe
 * @package    MyApplication
 *
 * @param string   $basePath web base path
 * @param string   $robots   tell robots how to index the content of a page (optional)
 * @param array    $flashes  flash messages
 *}

<!DOCTYPE html>
<http://www.w3.org/TR/html4/loose.dtd"/>
<html>
<head>
    <meta http-equiv="content-language" content="cs">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="author" content="HTML code: Jakub Šefčik; e-mail: sefjakub@gmail.com">
    <meta name="rating" content="general" >
    <meta name="robots" content="{$robots}" n:ifset="$robots">
    <meta name="robots" content="all, follow" >
    <meta name="revisit-after" content="7 days" >
    <meta name="keywords" content="skaut, Povodeň, junák, Benátky, středisko" lang="cs" >
    <meta name="description" content="Oficiální web skautského střediska Povoden Benátky nad Jízerou" >
    <meta name="google-site-verification" content="7Fe0pYj1K3YHyY_o3Ru_Jgng8T3FlfKaHnLHKHZuwpA" />
    <title>Povodeň ... JUNÁK svaz Skautů a Skautek ČR, středisko Povodeň Benátky nad Jízerou</title>
    <link REL="SHORTCUT ICON" HREF="{$basePath}/images/nova-skautska-lilie.jpg" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/css.css">
    {control css}
    <link rel="stylesheet" type="text/css" href="{$basePath}/css/new/jquery-ui.css">
    <link href="https://plus.google.com/113016376247200316586" rel="publisher" />
    <link rel="stylesheet" href="{$basePath}/css/lightbox.css" type="text/css" media="screen" />

    {*<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>*}
    <script type="text/javascript" src="{$basePath}/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="{$basePath}/js/jquery-ui-1.8.20.custom.min.js"></script>
    
   
    <script type="text/javascript" src="{$basePath}/js/netteForms.js"></script>
    {*<script type="text/javascipt" src="{$basePath}/js/live-form-validation.js"></script>*}
    <script type="text/javascript" src="{$basePath}/js/menu.js"></script>
    
    <!-- Google Analytics -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28864243-1']);
      _gaq.push(['_setDomainName', 'povoden.com']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>

    {block javascript}{/block}
<body>
    <div id="layout"> <!--id="layout"-->
        {block head}{/block}
	<script> document.body.className+=' js' </script>
	{dump $menu}
        <div id="menu">

            {for $i = 0; $i < count($menu[hl]); $i++}
                <div class="mennu{$i+1}"><a class="menu" href="#{*$menu["hlu"][$i]*}" >{$menu["hl"][$i]}</a></div>
            {/for}
        </div>
        <div id="submenus">
            {for $i = 0; $i < count($menu[hl]); $i++}
                <div id="mennu{$i+1}">
                    {for $j = 0; $j < count($menu["sub".$i]); $j++}
                        {var $men= "sub".$i."u"}
                    {if $i==1 && ($j== 3|| $j== 4)}
                        <div><a class='sub' href="{$menu[$men][$j]}" >{$menu["sub".$i][$j]}</a></div>
                    {else}
                        <div><a class='sub' n:href="{$menu[$men][$j]}" >{$menu["sub".$i][$j]}</a></div>
                    {/if}
                    
                    {/for}
                    </div>
            {/for}
        </div>

        <h1>Junák svaz Skautů a Skautek ČR - Skautské středisko Povodeň Benátky nad Jizerou</h1> <!--Tento hlavni nadpis je zde kvuli vyhledavacum. V prohlizeci je jeho zobrazeni zakazano CSS-->
        {*TODO: upravyt velikost na velikost, nezmencovat v <img />*}
        <a n:href="Povoden:stredisko">
            {*if !$user->isLoggedIn()*}
                <img src="{$basePath}/images/hlavicka_cista.jpg" width="994px" alt = "hlavicka"> <!--hlavicka_foto2-->
            {*else}
                <img src="{$basePath}/images/hlavicka_a_nazev1.jpg" width="994px" alt = "hlavicka"> <!--hlavicka_foto2-->
                <img src="{$basePath}/images/hlavicka_a_nazev2.jpg" width="994px" alt = "hlavicka"> <!--hlavicka_foto2-->
            {/if*}
        </a>
        <div id="obsah">
    
	<div n:foreach="$flashes as $flash" class="flash {$flash->type}">{$flash->message}</div>
            {include #content}

        </div> <!--id="obsah"-->

        <div id="paticka">
            By
            <a href="http://www.google.com/talk/service/badge/Start?tk=z01q6amlq8la0rakv8lmbf0qqsc68ee6jprednkhnjmvh35t71cbkkc68vtohjh38loiji6s3mbilockoc0mqejvsdilq036tq55bpmt77r379ovr89ts8rpf3lsd1j1jmf4h498m53vfue53i1pff9b97q8u7tdk39d9s7f6" target="_blank" title="Kliknutím zde zahájíte chat s uživatelem Buddha.">Buddha </a>
            <img height="9" width="9" style="padding:0 2px 0 0;margin:0;border:none" src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlq8la0rakv8lmbf0qqsc68ee6jprednkhnjmvh35t71cbkkc68vtohjh38loiji6s3mbilockoc0mqejvsdilq036tq55bpmt77r379ovr89ts8rpf3lsd1j1jmf4h498m53vfue53i1pff9b97q8u7tdk39d9s7f6&amp;w=9&amp;h=9" alt="">

            <span>
            {if $user->isLoggedIn()}
                {dump $user}
                Přihlášeni jako "{$user->getIdentity()->nick}" s pravy "{ xy }" | <a n:href="Out">Odhlásit</a>
            {else}
                <a n:href="Admin:">@</a>
            {/if}
            </span> 
            
            <span class="doStredu">
                << JUNÁK svaz Skautů a Skautek ČR, středisko "Povodeň" Benátky nad Jízerou >>
            </span>

            <span class="krkdo">
            <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="Licence Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png"></a>
            <a href="https://plus.google.com/113016376247200316586?prsrc=3" style="text-decoration:none;"><img src="https://ssl.gstatic.com/images/icons/gplus-16.png" alt="" 		                       	          style="border:0;width:16px;height:16px;"/></a>
            <!-- Facebook Badge START --><a href="https://www.facebook.com/pages/Povode%C5%88/140784519291193" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Povodeň"><img src="" alt="fb povoden"></a><!-- Facebook Badge END -->
            </span>
        </div> <!--id="paticka"-->

    </div> <!--id="layout"-->

</body>
</html>